
#include <kern/mmu.h>
#include <kern/memlayout.h>

.globl loadsegregs
loadsegregs:
	movw $(SEG_KDATA << 3),  %ax
	movw %ax,  %ds
	movw %ax,  %ss

	ljmp $(SEG_KCODE << 3), $next
next:
	ret

